import { h } from "./snabbdom/h";
import {
    init,
    classModule,
    propsModule,
    styleModule,
    eventListenersModule,
} from "snabbdom";
const patch = init([classModule, propsModule, styleModule, eventListenersModule]);

var vnode = h('ul', {}, [
    h('li', {}, 'tom'),
    h('li', {}, [
        h('div', {}, '123'),
        h('div', {}, '456'),
    ]),
    h('li', {}, 'bryan'),
]);

console.log(vnode);

var realDom = document.getElementById("container");
//让虚拟dom上树
patch(realDom, vnode);